<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="net.sf.json.JSONObject" %>
<%@ page import="java.net.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setCharacterEncoding("UTF-8");
String openid = request.getParameter("openid");
String nickname = new String(request.getParameter("nickname").getBytes("iso-8859-1"),"UTF-8");
String sex = request.getParameter("sex");
String province = new String(request.getParameter("province").getBytes("iso-8859-1"),"UTF-8");
String city = new String(request.getParameter("city").getBytes("iso-8859-1"),"UTF-8");
String country = new String(request.getParameter("country").getBytes("iso-8859-1"),"UTF-8");
String headimgurl = request.getParameter("headimgurl");
String privilege = request.getParameter("privilege");
//String unionid = request.getParameter("unionid");

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Ivory_Valley</title>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
</head>
<body>
	openid：<%=openid %><br>
	昵称：<%=nickname %><br>
	性别：<%=sex %><br>
	省份：<%=province%><br>
	城市：<%=city%><br>
	国家：<%=country%><br>
	头像：<%=headimgurl%><br>
	用户特权信息：<%=privilege%><br>
	

	欢迎来到象芽谷!
	
</body>
 <script type="text/javascript">
 $(document).ready(function(){
		$.post("http://xyg.bigdatas.top/ivory-valley/signconfig/sign.dx",{"url":window.location.href},function(data,status){
			//data=eval("("+data+")");
			//alert(data.timestamp);
			wx.config({
			      debug: true,
			      appId: 'wx7491574828fade87',
			      timestamp:data.timestamp,
			      nonceStr:data.nonceStr,
			      signature:data.signature,
				  jsApiList: [
			      'checkJsApi',
		          'onMenuShareTimeline',
		          'hideOptionMenu',
			      ]
			  });
			wx.ready(function(){
				wx.hideOptionMenu();/***隐藏分享菜单****/ 
			});
		});
	});
	</script>
</html>